<?php

$template->set_filenames(array(
	'body'	=> 'guest_post_question.tpl'
));

$sql = "SELECT * FROM pctroubleshooting_topic";
$rs = $link->Execute($sql);

$tmp = '';
while ( !$rs->EOF )
{
	$tmp .= '<option value="' . $rs->fields('Id') . '">' . $rs->fields('tname_'.$_SESSION['cur_lang']) . '</option>';
	
	$rs->MoveNext();
}

$template->assign_vars(array(
	'_LISTTOPIC'			=> $tmp,
	'_FRMACTION'			=> setURLParams('act=dyn&mod=PCTroubleshooting&f=process_guest_post_question'),
	'_PCTOPIC'				=> $lang['l_pc_topic'],
	'_BTN_GUESTPOSTSUBMIT'	=> $lang['l_btn_gusetpost'],
	'_FRM_GUESTPOST_TITLE'	=> $lang['l_frmguestposttitle'],
	'_YOURNAME'				=> $lang['l_pc_yourname'],
	'_YOUREMAIL'			=> $lang['l_pc_youremail'],
	'_YOUR_QUESTION'		=> $lang['l_pc_question'],
	'_VN'					=> $lang['l_pc_vietname'],
	'_EN'					=> $lang['l_pc_english']
));

$template->pparse('body');

?>